/* 人脸质量检测组件样式 */

.face-quality-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.face-quality-container {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.face-quality-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.face-quality-icon {
  margin-bottom: 12px;
}

.success-icon {
  font-size: 48px;
  color: #52c41a;
}

.error-icon {
  font-size: 48px;
  color: #ff4d4f;
}

.face-quality-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  text-align: center;
}

.face-quality-message {
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
}

.message-text {
  margin: 0;
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}

.face-quality-details {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.details-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.detail-item.success {
  background: #f6ffed;
  border-color: #b7eb8f;
}

.detail-item.error {
  background: #fff2f0;
  border-color: #ffccc7;
}

.detail-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label-text {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

.label-threshold {
  font-size: 12px;
  color: #999;
}

.detail-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-value .success-icon {
  font-size: 16px;
  color: #52c41a;
}

.detail-value .error-icon {
  font-size: 16px;
  color: #ff4d4f;
}

.value-text {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

.face-quality-suggestions {
  padding: 20px;
  background: #fff7e6;
  border-bottom: 1px solid #f0f0f0;
}

.suggestions-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.suggestions-list {
  margin: 0;
  padding-left: 20px;
  color: #666;
}

.suggestions-list li {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.face-quality-actions {
  padding: 20px;
  display: flex;
  gap: 12px;
  background: white;
}

.action-btn {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-btn {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #d9d9d9;
}

.retry-btn:hover {
  background: #e6f7ff;
  color: #1890ff;
  border-color: #91d5ff;
}

.confirm-btn {
  background: #1890ff;
  color: white;
}

.confirm-btn:hover {
  background: #40a9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.action-btn:active {
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .face-quality-overlay {
    padding: 10px;
  }
  
  .face-quality-container {
    max-height: 95vh;
  }
  
  .face-quality-header {
    padding: 20px 16px 12px;
  }
  
  .success-icon,
  .error-icon {
    font-size: 40px;
  }
  
  .face-quality-title {
    font-size: 16px;
  }
  
  .face-quality-message,
  .face-quality-details,
  .face-quality-suggestions,
  .face-quality-actions {
    padding: 16px;
  }
  
  .details-title,
  .suggestions-title {
    font-size: 15px;
  }
  
  .message-text {
    font-size: 15px;
  }
  
  .action-btn {
    height: 40px;
    font-size: 15px;
  }
}

/* 动画效果 */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.face-quality-container {
  animation: slideIn 0.3s ease-out;
}

/* 滚动条样式 */
.face-quality-container::-webkit-scrollbar {
  width: 4px;
}

.face-quality-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.face-quality-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.face-quality-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
